#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main()
{
	int i = 0;
	int a = 0;
	scanf("%d", &a);
	int left = 0;
	int right = a - 1;

	char arr[20] = {0};
	arr[left] = '*';
	arr[right] = '*';
	for (i = 1; i < a - 1; i++)
	{
		arr[i] = ' ';
	}
	while ((left <= a - 1) && (right >= 0))
	{
		if (left == right)
		{
			arr[left + 1] = ' ' ;
		}
		int j = 0;
		for (j = 0; j < a; j++)
		{
			printf("%c", arr[j]);
		}
		printf("\n");
		if (left == right)
		{
			arr[left + 1] = '*';
		}
		arr[left] = '*';
		arr[right] = '*';
		char ch = arr[left];
		arr[left] = arr[left+1];
		arr[left + 1] =ch;
		ch = arr[right];
		arr[right] = arr[right - 1];
		arr[right - 1] = ch;
		left++;
		right--;

	}
	
	return 0;
}